Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id WAA24721
for <mcox@access.digex.net>; Mon, 21 Apr 1997 22:44:38 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id VAA09131
for amos-out; Mon, 21 Apr 1997 21:14:09 -0400 (EDT)
Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id VAA09128
for <amos-list@svcs1.digex.net>; Mon, 21 Apr 1997 21:14:09 -0400 (EDT)
Received: from mhv.net (root@spice.mhv.net [199.0.0.21])
by mail1.access.digex.net (8.8.5/8.8.5) with ESMTP id VAA26258
for <amos-list@access.digex.net>; Mon, 21 Apr 1997 21:14:07 -0400 (EDT)
Received: from mike ([205.161.119.194]) by mhv.net (8.8.5/8.7.3) with SMTP id VAA13410 for <amos-list@access.digex.net>; Mon, 21 Apr 1997 21:13:59 -0400
Message-ID: <335C10DB.7DB8@mhv.net>
Date: Mon, 21 Apr 1997 21:14:03 -0400
From: Michael Drummond <miked@mhv.net>
X-Mailer: Mozilla 3.0 (Win95; U)
MIME-Version: 1.0
To: amos-list@access.digex.net
Subject: Printing to file
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: RO
X-Status:
>
>What I want to do is use AmosPro to create a file in Ram called Datapath
>and then execute it with Amiga dos.
>If you look at the example below it should create a file called Datapath
>containing "CD workbench:data".
>
>a$="workbench:data"
>C$="CD "
>A$=C$+A$
>Open Out 3,"Ram:Datapath"
>Print #3,A$
>Print #3,Chr$(13)
>Close 3
If you write your info to a bank and Bsave from it you eliminate the
extra characters. But in this case, how about quick & dirty with the
CLI echo command?
A$="CD workbench:data"
exec "echo "+A$+" >ram:Datapath" :Rem Keep those spaces